package com.humanSource.code.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.utils.PageUtils;
import com.utils.Query;

import com.humanSource.code.dao.DepCategoryDao;
import com.humanSource.code.entity.DepCategoryEntity;
import com.humanSource.code.service.DepCategoryService;


@Service("depCategoryService")
public class DepCategoryServiceImpl extends ServiceImpl<DepCategoryDao, DepCategoryEntity> implements DepCategoryService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DepCategoryEntity> page = this.page(
                new Query<DepCategoryEntity>().getPage(params),
                new QueryWrapper<DepCategoryEntity>()
        );

        return new PageUtils(page);
    }

}